import oauth from './oauth'

const install = function(Vue) {
  Vue.directive('oauth', oauth)
}

if (window.Vue) {
  window.oauth = oauth
  Vue.use(install); // eslint-disable-line
}

oauth.install = install
export default oauth
